package com.xudu.qojbackend.common;

import com.xudu.qojbackend.constant.CommonConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(description = "分页参数")
public class PageRequest {

    /**
     * 页面大小
     */
    @ApiModelProperty(value = "页面大小", required = false)
    protected int pageSize = 10;

    /**
     * 当前是第几页
     */
    @ApiModelProperty(value = "页码", required = false)
    protected int pageNum = 1;

    /**
     * 排序字段
     */
    private String sortField;

    /**
     * 排序顺序（默认升序）
     */
    private String sortOrder = CommonConstant.SORT_ORDER_ASC;
}
